package com.hspedu.properties_;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

/**
 * @author LiuJinTao
 * @className Properties01
 * @date 2024/06/28 16:19
 * @description TODO
 */
public class Properties01 {
    public static void main(String[] args) throws IOException {
        
        // 读取 mysql.properties 文件，并得到ip, user, password
        BufferedReader br = new BufferedReader(new FileReader("src\\mysql.properties"));
        String len;
        while ((len = br.readLine()) != null) {
            String[] split = len.split("=");
            System.out.println(split[0] + "值是：" + split[1]);
        }
    }
}
